"""
路线URL配置
"""
from django.urls import path, include
from .views import RoutePlanView, RoutePlanHistoryViewSet, RoutePlanAsyncView, RoutePlanStatusView
from rest_framework.routers import DefaultRouter

router = DefaultRouter()
router.register(r'history', RoutePlanHistoryViewSet, basename='route-plan-history')

urlpatterns = [
    path('plan/', RoutePlanView.as_view(), name='route-plan'),
    path('plan/async/', RoutePlanAsyncView.as_view(), name='route-plan-async'),
    path('plan/status/', RoutePlanStatusView.as_view(), name='route-plan-status'),
    path('', include(router.urls)),
]

